<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>xSite Administrator's Control Panel</title>
<link rel="stylesheet" href="./php.net.cn/xsite/admin/images/admincp.css" type="text/css" media="all" />
<meta content="xSite Inc." name="Copyright" />
</head>
<body>
<div id="append"></div>
<script type="text/javascript">
	function headermenu(ctrl) {
		ctrl.className = ctrl.className == 'otherson' ? 'othersoff' : 'otherson';
		var menu = document.getElementById('header_menu_body');
		if(!menu) {
			menu = document.createElement('div');
			menu.id = 'header_menu_body';
			menu.innerHTML = '<ul>' + document.getElementById('header_menu_menu').innerHTML + '</ul>';
			var obj = ctrl;
			var x = ctrl.offsetLeft;
			var y = ctrl.offsetTop;
			while((obj = obj.offsetParent) != null) {
				x += obj.offsetLeft;
				y += obj.offsetTop;
			}
			menu.style.left = x + 'px';
			menu.style.top = y + ctrl.offsetHeight + 'px';
			menu.className = 'togglemenu';
			menu.style.display = '';
			document.body.appendChild(menu);
		} else {
			menu.style.display = menu.style.display == 'none' ? '' : 'none';
		}
	}
	
</script>

<script type="text/javascript">
	function select_category() {
		 var category_list = document.getElementById("category_list");
		  window.location = category_list.options[category_list.selectedIndex].value;
	}
	
</script>
<div class="container">
  
	<h3 class="marginbot">		

		当前主题ID:[ <?=$theme[$skinid]['name']?> ] ，模板及样式文件保存在： [ ./templates/<?=$skinid?> ] 目录下
		
	</h3>
	
  <div class="note fixwidthdec">
    <p class="i">这里是主题列表，选择你喜欢的主题，点击“启用”链接。</p>
  </div>
  
  <div class="mainbox">
    
      <table>
	  <tr>
	  <?php $n = 0;?>
        <?php if (is_array($theme) && count($theme) > 0) foreach ($theme as $k => $v) {?>
		<?php if($n % 4 == 0){?></tr> <tr> <td><?php } else {?> <td> <?php }?>
		
		<ul style="margin:8px; float:left; list-style:none; text-align:center">

            <table width="100" border="0" cellspacing="1" cellpadding="5">
              <tr>
                <td><a href="<?=$v['demo']?>" target="_blank"><img src="<?=("./templates/{$v['skinid']}/{$v['thumbnail']}")?>" alt="" width="180" height="240" style="border: 1px solid #CCC;padding: 3px;" /></a></td>
              </tr>
              <tr>
                <td align="center"><?=$v['name']?> <a href="xsite.php?action=theme&operation=select&key=<?=$v['skinid']?>">启用</a> &nbsp;[<a target="_blank" href="<?=$v['demo']?>">演示</a>|<a target="_blank" href="<?=$v['doc']?>">文档</a>]
                </td>
              </tr>
            </table>

        </ul>
		</td>
		<?php $n++;?>
		<?php }?>
		
		</tr>
      </table>
      <div class="margintop"></div>
   
  </div>
</div>
</body>
</html>
